package top.frsf.pattern.c_behavioral.c_observer.spring.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;
import top.frsf.pattern.c_behavioral.c_observer.spring.event.LogEvent;

/**
 * @author FRSF
 * @since 2024/9/4 23:04
 */
@Component
public class LogEventListener {

    @EventListener
    public void onLogEvent(LogEvent event) {
        System.out.println("LogEventListener: " + event);
    }
}
